package cn.iocoder.yudao.module.ent.enums.search;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum EntSearchKeyTypeEnum implements IntArrayValuable {

    NAME(1, "企业名称"),
    SCOPE(1, "经营范围");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(EntSearchKeyTypeEnum::getCode).toArray();

    /**
     * 状态
     */
    private final Integer code;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
